
using System;
using System.Collections.Generic;

namespace LS.Saving
{
    public interface ISavingHelper
    {
        void GetAllFiles(string folder, string searchExt, Action<IDataFile[]> onResult);
        
        void LoadFile(IDataFile file, Database dataBase, Action<bool, string> onResult);
        
        void SaveFile(IDataFile file, Database dataBase, Action<bool, string> onResult);
        
        void DeleteFile(IDataFile file);
        
        IDataFile CreateDataFile(string folder, string fileName, string fileExtension);
        
        IDataFile CreateDataFile(string filePath);
    }
}